﻿<%@ Control Language="C#" %>

<script runat="server">
    private int type = 0;
    private int root_id = 0;
    private int item_lang = 1;
    protected void Page_Load(object sender, EventArgs e)
    {
        /* 语言绑定 */
        item_lang = Utils.GetLangId();
        Types types = new Types();
        Repeater_List.DataSource = types.List(Root_Id, Type, item_lang);
        Repeater_List.DataBind();
    }
    /// <summary>
    /// 对象类型
    /// </summary>
    /// 
    public int Type
    {
        get { return type; }
        set { type = value; }
    }

    /// <summary>
    /// 跟目录ID
    /// </summary>
    public int Root_Id
    {
        get { return root_id; }
        set { root_id = value; }
    }
</script>
<asp:Repeater runat="server" ID="Repeater_List">
    <ItemTemplate><option value="<%#Eval("id") %>" class="db">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%if(item_lang>10){ %>└─<%}else{ %>┘─<%} %> (<%#Eval("Id","{0:000}") %>) - <%#Eval("Name") %></option>
    </ItemTemplate>
</asp:Repeater>